Optimal. Leaf size=59 \[ \frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.061, Rules used = {17, 2637} \[ \frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 2637
Rubi steps
\begin {align*} \int \frac {\sqrt {b \cos (c+d x)} (A+B \cos (c+d x))}{\sqrt {\cos (c+d x)}} \, dx &=\frac {\sqrt {b \cos (c+d x)} \int (A+B \cos (c+d x)) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {\left (B \sqrt {b \cos (c+d x)}\right ) \int \cos (c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {A x \sqrt {b \cos (c+d x)}}{\sqrt {\cos (c+d x)}}+\frac {B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 42, normalized size = 0.71 \[ \frac {\sqrt {b \cos (c+d x)} (A (c+d x)+B \sin (c+d x))}{d \sqrt {\cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.94, size = 181, normalized size = 3.07 \[ \left [\frac {A \sqrt {-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, \sqrt {b \cos \left (d x + c\right )} B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{2 \, d \cos \left (d x + c\right )}, \frac {A \sqrt {b} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + \sqrt {b \cos \left (d x + c\right )} B \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{d \cos \left (d x + c\right )}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \sqrt {b \cos \left (d x + c\right )}}{\sqrt {\cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.18, size = 39, normalized size = 0.66 \[ \frac {\sqrt {b \cos \left (d x +c \right )}\, \left (A \left (d x +c \right )+B \sin \left (d x +c \right )\right )}{d \sqrt {\cos \left (d x +c \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.60, size = 40, normalized size = 0.68 \[ \frac {2 \, A \sqrt {b} \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right ) + B \sqrt {b} \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.29, size = 35, normalized size = 0.59 \[ \frac {\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (B\,\sin \left (c+d\,x\right )+A\,d\,x\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 12.09, size = 46, normalized size = 0.78 \[ \begin {cases} A \sqrt {b} x + \frac {B \sqrt {b} \sin {\left (c + d x \right )}}{d} & \text {for}\: d \neq 0 \\\frac {x \sqrt {b \cos {\relax (c )}} \left (A + B \cos {\relax (c )}\right )}{\sqrt {\cos {\relax (c )}}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________